<%@ page contentType="text/html;charset=UTF-8"%>
<script src="${ctx}/static/js/template.js" type="text/javascript"></script>
<script>
	window.template()
</script>
<script type="text/html" id="deduct_tmpl">
	<* if(list != null && list.length > 0){ *>
		<* for(var i = 0; i < list.length ; i ++) { *>
		<* var data = list[i]; *>
			<li class="ui-border-t"  onclick="toAppeal(<*:=data.id*>)">
				<div class="ui-row-flex" style="font-size: 17px;">
					<div class="ui-col ui-col-2">
						<span><*:=data.parkLotName*></span>
					</div>
					<div class="ui-col" style="text-align: right; padding-right: 10px">￥<* var beforeMoney=(data.beforeMoney/10).toFloat(2)*><*:=beforeMoney*></div>
				</div>
				<div class="ui-row-flex" style="margin-top: 3px">
					<div class="ui-col ui-col-2">
						<h5 class="ui-txt-info"><*:=data.carNo*></h5>
					</div>
					<div class="ui-col" style="text-align: right; padding-right: 10px">
						<h5 class="ui-txt-info">停车券:￥<* var afterCoupon=(data.afterCoupon/10).toFloat(2)*><*:=afterCoupon*></h5>
					</div>
				</div>
				<div class="ui-row-flex">
					<div class="ui-col ui-col-2">
						<h5 class="ui-txt-info">
						<*:=data.outTime*>
						</h5>
					</div>
					<div class="ui-col" style="text-align: right; padding-right: 10px">
						<h5 class="ui-txt-info">总额:<span>￥<* var afterMoney=(data.afterMoney/10).toFloat(2)*><*:=afterMoney*></span></h5>
					</div>
				</div>
			</li>
		<* } *>
	<* } *>
</script>

<script type="text/html" id="topup_tmpl">
	<* if(list != null && list.length > 0) { *>
		<* for (var i = 0 ; i < list.length ; i++) { *>
			<* var data = list[i]; *>
			<li class="ui-border-t">
				<div class="ui-row-flex" style="font-size: 17px;">
					<div class="ui-col ui-col-2">
						<span> 
							<* var title = data.changeMoney > 0 ? '微信充值' : '赠券'  *>
							<*:= title*>
						</span>
						<p class="ui-txt-info">
							<* var createTime = data.createTime > 0 ? '微信充值' : '赠券'  *>
							<*:= createTime*>
						</p>
					</div>
					<div class="ui-col" style="font-size: 26px; padding-right: 20px; text-align: right;">
						+<* var showMoney = (data.changeMoney > 0 ? (data.changeMoney / 10) : (data.changeCoupon / 10)).toFloat()  *>
						<*:= showMoney*>
					</div>
				</div>
			</li>
		<* } *>
	<* } *>
</script>